<?php
/**
 * created by.
 * User: EDZ
 * Date: 2020/9/29
 * TIME: 14:10
 */

namespace app\admin_libaray\user\service;

use app\admin_libaray\user\model\UserModel;
use app\service;

class UserService extends service {

    public static function getUserInfo($value,$keyword){
        $where = [];
        switch ($keyword){
            case 'username' : $where['username'] = $value;
        }
        $userInfo = UserModel::getUserInfo($where);
        return $userInfo;
    }
}